package com.taobao.com;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.URLDecoder;
import java.net.URLEncoder;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ParametersName extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
			String top_parameters=request.getParameter("topParams");
			String nick=Util.ParametersName(top_parameters);
			response.sendRedirect("topParams.jsp?nick="+URLEncoder.encode(nick, "utf-8")+"&topParams="+top_parameters+"");
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {


	}

	
	public void init() throws ServletException {
		// Put your code here
	}

}
